import java.util.Vector;
import java.util.List;

class Course {
	public String code;
	public Professor prof;
	public List<Student> students;
	
	public Course(String code) {
		this.code = code;
		this.students = new Vector<Student>();
	}
	
	public void taughtBy(Professor prof) {
		this.prof = prof;
	}
	
	public void enroll(Student student) {
		this.students.add(student);
	}
	
	public String toString() {
		return "COURSE<" + this.code + ">";
	}
}
